<template>
	<view class="contain">
		<view class="vipcard_List" v-for="(item,index) in vipList" :key="index" @click="goDetail">
			<image :src="item.IconImg" mode="widthFix"></image>
			<view class="card_msg">
				<view class="card_msg_img">
					<image :src="item.IconImg" mode="widthFix"></image>
				</view>
				<view class="card_msg_title">
					<text>{{item.TagName}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import { getUserVip } from '@/api/homePage.js'
	export default{
		data(){
			return{
				vipList:[]
			}
		},
		computed:{
			
		},
		methods:{
			//会员
			async getVipMsg(){
				try{
					const {Data} = await getUserVip({})
					console.log(3355553,Data);
					this.vipList=Data;
				}catch(e){
					//TODO handle the exception
				}
			},
			goDetail(){
				uni.navigateTo({
					url:'../detail/touristDetail?id=4203'
				})
			}
		},
		onLoad() {
			uni.setNavigationBarTitle({
				title:'会员特权'
			});
			this.getVipMsg();
			console.log(123214)
		},
		
	}
</script>

<style lang="scss" scoped>
	.contain{
		width: 100vw;
		padding: 30rpx;
		.vipcard_List{
			position: relative;
			width: 690rpx;
			height: 200rpx;
			overflow: hidden;
			border-radius: 16rpx;
			background-color: rgba($color: #000000, $alpha: .2);
			margin-bottom: 20rpx;
			.card_msg{
				position: absolute;
				top: 0;
				left: 0;
				padding: 50rpx 30rpx;
				display: flex;
				.card_msg_img{
					width: 100rpx;
					height: 100rpx;
					border-radius: 50rpx;
					border: 2rpx solid #fff;
					overflow: hidden;
					padding: 6rpx;
					image{
						width: 100%;
					}
				}
				.card_msg_title{
					margin: 10rpx 30rpx 0;
					font-size: 34rpx;
					font-weight: 600;
					color: #fff;
				}
			}
		}
	}
</style>
